package com.yh.bean;
//发帖表
import java.util.Date;

public class ChatPost {

	private int postId;
	//private int user_id; 要使用resultMap把外键联系改为实体类对象
	//private int game_id;
	private String postContent;
	private String postTitle;;

	private String postTime;
	private String postPicture;
	private int postStatus;
	private User user;
	private Game game;
	
	
	public int getPostId() {
		return postId;
	}
	public void setPostId(int postId) {
		this.postId = postId;
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	public Game getGame() {
		return game;
	}
	public void setGame(Game game) {
		this.game = game;
	}
	public String getPostContent() {
		return postContent;
	}
	public void setPostContent(String postContent) {
		this.postContent = postContent;
	}
	public String getPostTitle() {
		return postTitle;
	}
	public void setPostTitle(String postTitle) {
		this.postTitle = postTitle;
	}
	public String getPostTime() {
		return postTime;
	}
	public void setPostTime(String postTime) {
		this.postTime = postTime;	
	}
	public String getPostPicture() {
		return postPicture;
	}
	public void setPostPicture(String postPicture) {
		this.postPicture = postPicture;
	}
	public int getPostStatus() {
		return postStatus;
	}
	public void setPostStatus(int postStatus) {
		this.postStatus = postStatus;
	}
	@Override
	public String toString() {
		return "ChatPost [postId=" + postId + ", postContent=" + postContent + ", postTitle=" + postTitle
				+ ", postTime=" + postTime + ", postPicture=" + postPicture + ", postStatus=" + postStatus + ", user="
				+ user + ", game=" + game + "]";
	}
	
	
	
}
